package com.kaizeli.website.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.kaizeli.website.pojo.entity.CustomerDO;
import com.kaizeli.website.query.CustomerQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 客户Mapper接口
 */
@Mapper
public interface CustomerMapper extends BaseMapper<CustomerDO> {
    
    /**
     * 分页查询客户列表
     */
    Page<CustomerDO> pageQuery(Page<CustomerDO> page, @Param("query") CustomerQuery query);
    
    /**
     * 根据编码查询客户
     */
    CustomerDO selectByCode(@Param("code") String code);
}

